<style type="text/css">
    .bg {
        background: #fff;
    }
    .game_header{
        padding: 12px 10px;
        border-bottom: 1px solid #eeeeee;
    }
    .user_img{
       width: 42px;
       margin-right: 6px;
       margin-top: -4px;
    }
    .ji_balance_tip{
        font-size: 12.8px;
        color: #aaaaaa;
    }
    .ji_balance_count{
        font-size: 12.8px;
        color: #da4931;
    }
    .ji_rehcarge_link{
        font-size: 12.8px;
        color: #da4931;
        padding: 1px 6px;
        border-radius: 3px;
        border:1px solid #da4931;
        margin-top: 7px;
        margin-left: 10px;
    }
    .other_link a{
        display: inline-block;
        font-size: 12.8px;
        color: #999;
        border:1px solid #ccc;
        border-radius:3px;
        padding: 1px 6px;
        margin-top: 10px;
    }
    .game_tab{
        padding: 6px 30px;
    }
    .game_tab a{
        float: left;
        font-size: 14.4px;
        color: #666;
        height: 32px;
        line-height: 32px;
        padding: 0 6px;
    }
    .game_tab a.active{
        border-bottom: 2px solid #da4931;
    }
    .kContainer{
        height: 240px;
    }
    .game_params{
        font-size: 14.4px;
        color: #da4931;
        padding: 6px 12px;
    }
    .game_options{
        padding: 0 12px;
    }
    .game_options>.lf{
        width: 40%;
    }
    .game_options>.rt{
        width: 58%;
    }
    .game_btn{
        background: #eeeeee;
        font-size: 14.4px;
        color: #666;
        height: 32px;
        line-height: 32px;
        border-radius: 3px;
        padding: 0 10px;
    }
    .game_btn+.game_btn{
        margin-top: 10px;
    }
    .game_btn span{
        color: #da4931;
    }
    .game_btn img{
        height: 14px;
        margin-top: 10px;
    }
    .count_control_btn span{
        float: left;
        width: 50%;
        height: 32px;
        line-height: 32px;
        font-size: 24px;
        color: #666;
        border-top: 1px solid #ccc;
        text-align: center;
        background: #eeeeee;
    }
    .count_control_btn span+span{
        border-left: 1px solid #ccc;
    }
    .buy_btns a{
        width: 49%;
        height: 40px;
        line-height: 40px;
        text-align: center;
        font-size: 16px;
        background: #da4931;
        border-radius: 4px;
        color: #fff;
    }
    .buy_btns a img{
        height: 16px;
        margin-right: 4px;
    }
    .buy_btns a+a{
        background: #2cab41;
    }
    .red{
        color: red!important;
    }
    .green{
        color: green!important;
    }
    .now_price{
        font-size: 24px;
        color: red;
        text-align: center;
        height: 42px;
        line-height: 42px;
    }
    .top_footer{
        height: 23px;
        line-height: 23px;
        font-size: 12.8px;
        color: red;
    }
    .game_mask{
        position: fixed;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,.4);
        padding: 100px 24px 0 24px;
        display: none;
        left: 0;
        top: 0;
        z-index: 999999;
    }
    .game_mask_con{
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
    }
    .game_mask_title{
        height: 48px;
        line-height: 48px;
        text-align: center;
        font-size: 14.4px;
        background: #eee;
        color: #333;
    }
    .game_order_params{
        padding: 10px 12px;
    }
    .game_order_params p{
        float: left;
        width: 50%;
        font-size: 12.8px;
        color: #333;
        height: 32px;
        line-height: 32px;
    }
    .order_btns{
        padding: 16px 24px;
    }
    .order_btns a{
        height: 40px;
        line-height: 40px;
        background: #eeeeee;
        width: 40%;
        text-align: center;
        font-size: 12.8px;
        border-radius: 6px;
    }
    .order_btns a+a{
        background: #cc3333;
        color: #fff;
    }
</style>

<div class="game_mask">
    <div class="game_mask_con">
        <p class="game_mask_title">确认订单</p>
        <div class="game_order_params clear_fl">
            <p>周期: <span>30s</span></p>
            <p>投资积分: <span>100</span></p>
            <p>交易品种: <span>BTB玉</span></p>
            <p>服务费率: <span>3%</span></p>
            <p>服务积分: <span>3</span></p>
            <p>收益比率: <span>85%</span></p>
            <p>委托方向: <span>涨</span></p>
            <p>最新价格: <span>23588.22</span></p>
        </div>
        <p class="clear_fl order_btns">
            <a href="" class="lf cancel_btn">取消</a>
            <a href="" class="rt game_confirm_btn">确定</a>
        </p>
    </div>
</div>

<div class="game_header clear_fl">
    <a class="lf" href="<?= url(['user/index']) ?>">
        <img src="/images/userImg.png" class="lf user_img">
    </a>
    <div class="lf">
        <p class="ji_balance_tip">积分余额</p>
        <p class="ji_balance_count">1154514</p>
    </div>
    <a href="<?= url(['user/recharge']) ?>" class="lf ji_rehcarge_link">积分充值</a>
    <p class="rt other_link">
        <a href="<?= url(['user/with-draw']) ?>">兑换</a>
        <a href="<?= url(['site/ticket']) ?>">券</a>
        <a href="<?= url(['site/guide']) ?>">帮助</a>
    </p>
</div>

<p class="game_tab clear_fl">
    <a href="" class="active">BTB玉</a>
    <a href="">人参</a>
    <a href="">虫草</a>
</p>

<p class="game_tab clear_fl">
    <a href="" class="active">分时图</a>
    <a href="">30S</a>
    <a href="">1M</a>
    <a href="">3M</a>
</p>


<div class="kContainer">
    
</div>

<div class="clear_fl game_params">
    <span class="lf">收益率 85%</span>
    <span class="lf">预期收益： 85积分</span>
    <a href="<?= url(['site/gamePosition']) ?>" class="rt">查看持仓</a>
</div>

<div class="game_options clear_fl">
    <div class="lf">
        <p class="game_btn clear_fl">交易周期 <span>30S</span> <img class="rt" src="/images/jiantou.png"></p>
        <p class="game_btn clear_fl">交易周期 <span>100</span> <img class="rt" src="/images/jiantou.png"></p>
        <p class="count_control_btn clear_fl">
            <span class="minus_btn">-</span>
            <span class="pulus_btn">+</span>
        </p>
    </div>
    <div class="rt">
        <h1 class="now_price">29845.22</h1>
        <p class="clear_fl top_footer">
            <span class="lf">高  23565.2</span>
            <span class="rt">低  23235.2</span>
        </p>
        <p class="buy_btns clear_fl">
            <a class="lf" href=""><img src="/images/zhang2200.png">看涨</a>
            <a class="rt" href=""><img src="/images/die200.png">看跌</a>
        </p>
    </div>
</div>


<script type="text/javascript">
    $(".cancel_btn").click(function(e){
        e.preventDefault();
        $(this).parents(".game_mask").hide();
    });

    $(".buy_btns a").click(function(e){
        e.preventDefault();
        $(".game_mask").show();
    });
</script>











